package com.lwz.singleton;

/**
 * 单例模式
 * @author liuwangzhen
 *
 */
public class Singleton {
	
	private static Singleton single = null ;
	
	private  Singleton(){
		
	}

	public static synchronized Singleton getInstance(){
		if(single==null){
			single = new Singleton();
		}
		 return single;
	}
}
